import java.util.Scanner;
public class test14 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个三位数：");
        int a = sc.nextInt();
        //表示出a的百位，十位，个位
        int one = a / 100;
        int two = a / 10 % 10;
        int three = a % 10;
        if (one == three) {
            System.out.println("该数为" + a + "是一个回文数");
        } else {
            System.out.println("该数为" + a + "不是一个回文数");}

    }
}
